package com.otaku.controller;

import com.otaku.AbstractDataConvertor;
import com.otaku.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by lan on 2017-01-09.
 */
@RequestMapping(value = "/login")
@Controller
public class IndexController  extends BaseController{
    @RequestMapping(value = "/login")
    public ModelAndView register(){
        return convertData(new AbstractDataConvertor() {
            @Override
            public String getViewPath() {
                logger.info("enter");
                return "/login/login";
            }
        });
    }
}
